﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace PayrollExpress.Models
{
    public class BaseModel
    {
        public BaseModel(
                            string controller, 
                            string activePage
                        )
        {
            this.BreadCrumb = new BreadCrumbModel()
            {
                Controller = controller,
                ActivePage = activePage
            };
        }

        public BaseModel(
                            string controller, 
                            List<KeyValuePair<string, string>> parentLinks,
                            string activePage
                            
                        )
        {
            this.BreadCrumb = new BreadCrumbModel()
            {
                Controller = controller,
                ParentLinks = parentLinks,
                ActivePage = activePage
            };
        }

        public string PageAction { get; set; }
        public string ControllerName { get; set; }
        public BreadCrumbModel BreadCrumb { get; set; }
    }

    public class BreadCrumbModel
    {
        public string Controller { get; set; }

        public string ActivePage { get; set; }

        public List<KeyValuePair<string, string>> ParentLinks { get; set; }

        public List<KeyValuePair<string, string>> Params { get; set; }
    }
}